package org.jinyan.led.model;

public class DeviceInstance {

	public static String STATE_DISABLE = "DISABLE";
	public static String STATE_OPEN = "OPEN";
	public static String STATE_CLOSE = "CLOSE";

	private String id;
	private String serialNumber;
	private String openId; // userID
	private String userName;
	private String alias;
	private String state; // CLOSE OPEN DISABLE
	private String isConnect;
	private String ip;
	private String port;
	private String hostName;
	private String updateDT;
	private String insertDT;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIsConnect() {
		return isConnect;
	}

	public void setIsConnect(String isConnect) {
		this.isConnect = isConnect;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public String getHostName() {
		return hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	public String getInsertDT() {
		return insertDT;
	}

	public void setInsertDT(String insertDT) {
		this.insertDT = insertDT;
	}

	public String getUpdateDT() {
		return updateDT;
	}

	public void setUpdateDT(String updateDT) {
		this.updateDT = updateDT;
	}

	@Override
	public String toString() {
		return "DeviceInstance [id=" + id + ", serialNumber=" + serialNumber
				+ ", openId=" + openId + ", userName=" + userName + ", alias="
				+ alias + ", state=" + state + ", ip=" + ip + ", port=" + port
				+ ", insertDT=" + insertDT + "]";
	}

}
